package com.zhiying.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;


/**
 * 
* 项目名称：morning-product-facade   
* 类名称：Label   
* 类描述：Label / 商品标签表 实体类   
* 创建时间：2017年4月11日 下午3:10:45   
*
 */
@Entity
@Table(name="os_label",catalog="pussinboots_morning")
public class OS_Label{

    private static final long serialVersionUID = 1L;

    @OneToMany(mappedBy = "label")
    private List<OS_Product> productlist=new ArrayList<OS_Product>();
    /**
     * 标签ID
     */
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="label_id",nullable=false)
	private Integer labelId;
    public List<OS_Product> getProductlist() {
		return productlist;
	}

	public void setProductlist(List<OS_Product> productlist) {
		this.productlist = productlist;
	}

	/**
     * 标签名称
     */
	@Column(name="label_name")
	private String labelName;
    /**
     * 状态：1.显示；0.隐藏
     */
	@Column(name="status")
	private Integer status;
    /**
     * 权限排序
     */
	@Column(name="sort")
	private Integer sort;
    /**
     * 创建时间
     */
	@Column(name="create_time")
	private Date createTime;
    /**
     * 创建者
     */
	@Column(name="create_by")
	private String createBy;
    /**
     * 更新时间
     */
	@Column(name="update_time")
	private Date updateTime;
    /**
     * 更新者
     */
	@Column(name="update_by")
	private String updateBy;
    /**
     * 备注
     */
	@Column(name="remarks")
	private String remarks;


	public Integer getLabelId() {
		return labelId;
	}

	public void setLabelId(Integer labelId) {
		this.labelId = labelId;
	}

	public String getLabelName() {
		return labelName;
	}

	public void setLabelName(String labelName) {
		this.labelName = labelName;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

}
